package com.ruixi.controller;

import com.ruixi.enums.SeqTypeEnum;
import com.ruixi.service.SequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lrzg
 * @date 2021-05-06 23:47
 * @Description TODO
 */
@RestController
@RequestMapping("")
public class TestController {

    @Autowired
    private SequenceService sequenceService;

    @GetMapping("test")
    public String sequenceServiceTest(){
        String sequence=sequenceService.generate(SeqTypeEnum.SEQ_ORDER);
        return sequence;
    }
}
